package se.webbzon.boltzmann.object.light;

import java.awt.Color;

import javax.vecmath.Vector3f;

import se.webbzon.oschi01.worldeditor.DeflatableWorldObject;
import se.webbzon.oschi01.worldeditor.WorldObjectDeflation;
import se.webbzon.oschi01.worldobject.WorldStaticObject;
import se.webbzon.oschi01.worldobject.appearance.DirectionalLightAppearance3D;

public class DirectionalLight extends WorldStaticObject implements DeflatableWorldObject {

	// The name of this world object
	public static String worldObjectName = "directionalLight";
	
	/*============================================================
	Constructors
	============================================================*/
	
	/** Creates a new directional light. **/
	public DirectionalLight(Vector3f direction, Color color) {
		super(0, new DirectionalLightAppearance3D(direction, color));
	}

	/*============================================================
	Public Methods
	============================================================*/
	
	@Override public String getName() {
		return worldObjectName;
	}

	@Override public WorldObjectDeflation getDeflation() {
		return new DirectionalLightDeflation(0,this);
	}

}
